from xunter_utils.xunter_requests import ChromeClient
"""
抓取需要登录的网址
方式一
模拟登录找Cookie
需要更新维护Cookie值
"""
client = ChromeClient()
res = client.send_request('https://login3.scrape.center/api/book/?limit=18&offset=18',headers={
    'Authorization':'jwt eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VybmFtZSI6ImFkbWluIiwiZXhwIjoxNzMzNTM4OTI5LCJlbWFpbCI6ImFkbWluQGFkbWluLmNvbSIsIm9yaWdfaWF0IjoxNzMzNDk1NzI5fQ.ntE47jYTJTArxzAp-7lUhOz1VfY93PQpfSDSJS_Qvxs'
})
print(res.text)

